Drawing.roundPathPosition Method
Rounds a position used in a path to ensure the rendered shape conforms to pixel boundaries (no anti-aliasing)
where there are right angles.
This method is static.
Parameters
- position
-
Type: Number - May be null
An unrounded numeric pixel position.
- strokeWidth
-
Type: Number
(optional) The stroke width in pixels, if applicable.
Optional: True
Return Value
Type: Number - May be null
The position rounded to either the nearest pixel edge or pixel center.